<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<div class="layui-tab layui-tab-brief" th:fragment="tab">
    <ul class="layui-tab-title">
        <li th:if="${#authPermit.checkPermit('/contract/record/detail.action')}" th:class="${flag == 1 ? 'layui-this' : ''}"><a th:href="|/contract/record/detail.action?contractId=${obj.contractId}|" lay-text="基本信息">基本信息</a></li>
        <li th:if="${#authPermit.checkPermit('/contract/payment/record/list.action') && obj.contractId > 0}" th:class="${flag == 2 ? 'layui-this' : ''}"><a th:href="|/contract/payment/record/list.action?contractId=${obj.contractId}|" lay-text="收付记录">收付记录</a></li>
        <li th:if="${#authPermit.checkPermit('/contract/borrow/record/list.action') && obj.contractId > 0}" th:class="${flag == 3 ? 'layui-this' : ''}"><a th:href="|/contract/borrow/record/list.action?contractId=${obj.contractId}|" lay-text="借阅记录">借阅记录</a></li>
    </ul>
</div>

</html>